package com.augurit.gzcgwsp.ywcmn.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.augurit.gzcgwsp.ywcmn.dao.CertificateNoDao;
import com.augurit.gzcgwsp.ywcmn.entity.CertificateNo;
import com.augurit.gzcgwsp.ywcmn.service.ICertificateNoService;

@Service
@Transactional
public class CertificateNoServiceImpl implements ICertificateNoService{

	@Autowired
	private CertificateNoDao certificateNoDao;

	/*
	 * (non-Javadoc)
	 * @see com.augurit.wf.common.service.CertificateNoService#getMaxNum(int)
	 */
    public Long getMaxNum(int type) {
        return certificateNoDao.getMaxNum(type);
    }

     /*
      * (non-Javadoc)
      * @see com.augurit.wf.common.service.CertificateNoService#getNo(java.lang.Long, int)
      */
    public boolean getNo(Long ajid, int type) {
        CertificateNo entity= certificateNoDao.getNo(ajid,type);
        if(entity!=null){
            return true;
        }
        return false;
    }

    /*
     * (non-Javadoc)
     * @see com.augurit.wf.common.service.CertificateNoService#save(com.augurit.wf.common.entity.CertificateNo)
     */
    public void save(CertificateNo certificateNo) {
        certificateNoDao.save(certificateNo);
        
    }
	


	
	
}
